package com.hcy.domain;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "student")
public class Student {
    public Integer stdId;
    public String stdName;
    public  String hobby;

    public Student() {
    }

    public Student(Integer stdId, String stdName, String hobby) {
        this.stdId = stdId;
        this.stdName = stdName;
        this.hobby = hobby;
    }

    public Integer getStdId() {
        return stdId;
    }

    public void setStdId(Integer stdId) {
        this.stdId = stdId;
    }

    public String getStdName() {
        return stdName;
    }

    public void setStdName(String stdName) {
        this.stdName = stdName;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stdId=" + stdId +
                ", stdName='" + stdName + '\'' +
                ", hobby='" + hobby + '\'' +
                '}';
    }
}
